package com.ws.simple;

public class BeanFactory {
	
	public BasicBean getBean(String name){
		if("cat".equals(name)){
			return new CatBean();
		}else if("dog".equals(name)){
			return new DogBean();
		}else{
			return null;
		}
		
	}

}
